package com.restaurant.application.indexes.accumulategoodslist.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.generation.basictype.UID;
import com.nebutown.supporthome.AbstractBase;
import com.restaurant.application.indexes.accumulategoodslist.AccumulateShop;
import com.restaurant.application.minifacade.data.GoodsBO;
import com.restaurant.application.minifacade.data.GoodsPageBO;
import com.restaurant.application.minifacade.data.IdBO;
import com.restaurant.application.minifacade.data.SearchGoodsBO;
import com.restaurant.application.util.ResultBean;

public class AccumulateShopOutFace implements AccumulateShop {
    private AccumulateShopBase base;

    public AccumulateShopOutFace(AccumulateShopBase base) {
        this.base = base;
    }

    public AbstractBase getBase() {
        return this.base;
    }

    @Override
    public GoodsBO goodsDetail(IdBO arg0) {
        return (GoodsBO) base.call("goodsDetail", arg0);
    }

    @Override
    public GoodsPageBO getMiniPage() {
        return (GoodsPageBO)base.call("getMiniPage");
    }

    @Override
    public GoodsPageBO miniSearchGoods(SearchGoodsBO arg0) {
        return (GoodsPageBO) base.call("miniSearchGoods", arg0);
    }

    @Override
    public ResultBean exchangeGoods(IdBO arg0) {
        return (ResultBean) base.call("exchangeGoods", arg0);
    }

    @Override
    public UID getId() {
        return (UID)base.call("getId");
    }

    @Override
    public View getFullView() {
        return (View) base.call("getFullView");
    }

    @Override
    public View getViewLead(ViewSpec arg0) {
        return (View)base.call("getViewLead", arg0);
    }

    @Override
    public Class getEffectiveInterface() {
        return (Class)base.call("getEffectiveInterface");
    }
}
